<?php
/**
 * 
 * @authors yutent (yutent@doui.cc)
 * @date    2014-08-31 17:25:39
 *
 */

/**
 * 数据库信息
 */
$_G['db'] = [
	'default' => [
		'host' => '127.0.0.1',
		'user' => 'root',
		'passwd' => 'root',
		'dbname' => 'test'
	]
];


$_G['domain'] = 'dophp.doui.cc';

//smarty 模板界定符
$_G['delimiter'] = ['<!--{', '}-->'];



/** 邮件系统配置 */
$_G['smtp'] = [
	'host' => 'smtp.doui.cc',
	'post' => 25,
	'mail' => 'system.doui.cc',
	'name' => '系统邮件',
	'pwd' => '123456'
];

/**
 * 加密key，程序一旦启用，禁止修改
 */
$_G['key'] = 'eBYoXuKIzvn5ik//pleSww=='; 




/**
 * 通用正则表达式
 */

$_G['regexp'] = [
	'email'  => "/^[\w\.\-]+@\w+([\.\-]\w+)*\.\w+$/",
	'uname'  => "/^[A-z\d_]{4,16}$/",
	'passwd' => "/^[\dA-z0-9\!@#\$%\^&*\(_\+=\[\]\{\}\),\.\/;\\:\']{6,20}$/",
	'phone'  => "/^1[34578]\d{9}$/",
	'id_card' => "/^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}([0-9]|X|x)$/",
	'CN' => "/^[\x{4e00}-\x{9fa5}]+$/u",
	'qq' => "/^\d{5,12}$/"
];
